{extend name="public/base" /}
{block name="style"}
    <style>
        /* 公告详情特有样式 */
        .notice-detail {
            background-color: #fff;
            padding: 15px;
            margin-bottom: 60px; /* 为底部导航留空间 */
        }

        .detail-title {
            font-size: 20px;
            color: #333;
            line-height: 1.5;
            margin-bottom: 15px;
            font-weight: 600;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        .detail-meta {
            font-size: 12px;
            color: #999;
            margin-bottom: 20px;
            text-align: right;
        }

        .detail-content {
            font-size: 16px;
            color: #333;
            line-height: 1.8;
        }

        .detail-content p {
            margin-bottom: 18px;
            margin-top: 0;
            text-align: justify;
        }

        .detail-content p:last-child {
            margin-bottom: 0;
        }


        /* 响应式调整 */
        @media (max-width: 350px) {
            .detail-title {
                font-size: 18px;
            }
            .detail-content {
                font-size: 15px;
            }
        }
        .notice-detail>.detail-content img {
            width: 100%;
            height: auto;
            object-fit: cover;
        }
    </style>

{/block}
{block name="content"}
<div class="header">
    <a href="javascript:void(0);" class="back-btn">
        <i class="fa fa-angle-left" style="font-size: 24px;"></i>
    </a>
    <h1 class="header-title">公告详情</h1>
</div>
<div class='weui-content'>
    <div class="notice-detail">
        <h1 class="detail-title">{$info.title}</h1>

        <div class="detail-meta">发布时间：{$info.create_at}</div>

        <div class="detail-content">
           {$info.content|htmlspecialchars_decode|raw}
        </div>
    </div>
</div>
{/block}